package com.rzico.basics.mapper;

import com.rzico.base.BaseMapper;
import com.rzico.basics.entity.TurntablePrize;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <pre>
 *   营销活动奖品映射类
 * </pre>
 *
 * @author Rzico Boot
 * @version 1.0
 */
@Mapper
public interface TurntablePrizeMapper extends BaseMapper<TurntablePrize, String> {

    List<TurntablePrize> selectList(Map<String, Object> params);

    /**
     * 根据大转盘ID 删除对于的奖品
     *
     * @param turntableId 大转盘ID
     */
    int deleteByTurntableId(@Param("turntableId") Long turntableId, @Param("editIds") List<Long> editIds);

}
